package me.mouse.gokistats.event;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.Inventory;

public class MenuOpenEvent extends Event {
	private static final HandlerList handlers = new HandlerList();
	private Player player;
	private Inventory inv;
	private boolean cancelled;

	public MenuOpenEvent(Inventory inv, Player player) {
		this.inv = inv;
		this.player = player;
	}

	public Player getPlayer() {
		return this.player;
	}

	public Inventory getInventory() {
		return this.inv;
	}

	public boolean isCancelled() {
		return this.cancelled;
	}

	public void setCancelled(boolean cancel) {
		this.cancelled = cancel;
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}
}
